import request from "@/utils/request";
//封装获取所有资源类别信息
export const getAllResourceCategory = () => {
    return request({
        method: 'GET',
        url: '/boss/resource/category/getAll'
    })
}

//新建或更新资源类别信息
export const categoryCreateOrUpdate = (data) => {
    return request({
        method: 'POST',
        url: '/boss/resource/category/saveOrderUpdate',
        data
    })
}


//删除指定id的资源类别
export const deleteCategory=(categoryId)=>{
return request({
    method:'DELETE',
    //使用变量 url:'/boss/resource/category/{id}'
    url:`/boss/resource/category/${categoryId}`
})
}